﻿@using XWeb.SharpKit.Razor
@using SharpKit.JavaScript
@inherits HtmlArea<global::Demo1.Models.Sample1Model> @* using global:: is to hack intellisense *@

<p>Rendering the model:</p>
<p>Title: @Model.Title (or by chars: @for (var i = 0; i < Model.Title.Length; i++) { if (i > 0) { <text>, </text> } <em>@Model.Title[i]</em> })</p>
<p>Items <em>(length is @Model.Items.Length)</em>:</p>
<ul>
@foreach (var item in Model.Items)
{
    <li>Name: @item.Name (or upper "<em>@item.Name.ToUpper()</em>"), Count: @item.Count, Count*2: @(item.Count*2)</li>
}
</ul>